<%@page import="org.nado.bbs.BBSBoardVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.List, org.nado.member.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

<base href="../resources/" />
<meta http-equiv="content-type" content="text/html; charset= UTF-8" />
<title>WritePage by nado</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="style/style.css" />

<style type="text/css">
table {
	width: 500px;
	border-collapse: collapse;
	text-align: center;
	font-family: 'Trebuchet MS';
}

td,th {
	font-size: 10pt;
	border: 1px solid #ffffff;
	height: 20px;
	width: 10px;
}

th {
	background-color: #aaaaaa;
	color: #ffffff;
	font-family: Georgia;
}

tr.alt td {
	color: #111111;
	background-color: #dcdcdc;
}
</style>

</head>
<body>

<div id="main">
<div id="main_inner" class="fixed">
<div id="primaryContent_2columns">
<div id="columnA_2columns">
	<h3>BOARD</h3>
	<form action="/web/bbs/writeResult"	method="post">
	<%
		String bbs_no = request.getParameter("bbs_no");
		if(bbs_no != null){
			%><input type="hidden" name="bbs_no" value="${bbs_no}"/>
			<input type="hidden" name="page_no" value="${page_no}"/><%
		}
	%>

		<table>
			<tr>
				<th>Title</th>
				<td colspan="2">
				<input type="text" name="bbs_title" size="50" style="width: 500px; height: 30px">
				</input></td>
			</tr>
			<tr>
			<th>Writer</th>
			<%
				MemberVO mvo = (MemberVO) session.getAttribute("loginInfo");
				if(mvo != null){
					String writer = mvo.getMem_id();
			%>
					<td colspan="3">
					<input type="text" name="bbs_writer" value=<%=writer%> readonly="readonly" size="50"
					style="width: 500px; height: 30px"></input></td>
				<%
				}else{
				%>
					<td colspan="3">
					<input type="text" name="writer" readonly="readonly" size="50"
					style="width: 500px; height: 30px"></input></td>
				<%
				}
				%>
			</tr>
			<tr>
				<th>Content</th>
				<td><textarea name="bbs_content" style="width: 502px; height: 250px"></textarea></td>
			</tr>

			<tr>
				<td></td>
				<br></br>
				<td aling="right">
				<input type="submit" value="작성완료"></input>
				&nbsp; &nbsp; 
				<input type="reset" value="다시작성"></input></td>
			</tr>
		</table>
	</form>
	
	<table>
		<tr>
			<td style="text-align: right" colspan="2">
			<a href="javascript:history.back()">
<%-- 			<%
			String bbs_no = request.getParameter("bbs_no");
			if(bbs_no != null){out.print(bbs_no);}
			%> --%>
			 	<input type="button" value="뒤로가기"> </input></a></td>
		</tr>
	</table>

<br class="clear" />
</div>
</div>
</div>
</div>
</body>
</html>
